﻿using NCP.Recruiting.Domain.Aggregates.Bookmarks;
using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;

namespace NCP.Recruiting.Repository.SqlServer.UnitOfWork.Mapping
{
    public class BookmarkEntityTypeConfiguration : EntityTypeConfiguration<Bookmark>
    {
        public BookmarkEntityTypeConfiguration()
        {
            this.HasKey(d => d.Id);
            this.ToTable("ncp_bookmark");
            this.HasRequired(x => x.Resume).WithMany().HasForeignKey(x => x.ResumeId);
        }
    }
}
